package com.qunduikj.sjb.sdk.model.api.login;

import com.litesuits.common.utils.HexUtil;
import com.litesuits.common.utils.MD5Util;
import com.litesuits.http.annotation.HttpUri;
import com.qunduikj.sjb.sdk.config.ApiConfig;
import com.qunduikj.sjb.sdk.model.api.ApiParam;

/**
 * Created by ${MengTianYu} on 2016/3/4.
 */
@HttpUri(ApiConfig.LOGIN)
public class LoginParam extends ApiParam<LoginModel>{
    private String username;
    private String password;
    private int roleType;
    private String Token="";

    public LoginParam(String username, String password, int roleType) {
        this.password = HexUtil.encodeHexStr(MD5Util.md5(password));
        this.username = username;
        this.roleType = roleType;
    }

    @Override
    public String toString() {
        return "LoginParam{" +
               "username='" + username + '\'' +
               ", password='" + password + '\'' +
               ", roleType=" + roleType +
               '}';
    }
}
